package pl.edu.agh.xls2html.js;

public class UnaryMinusFormula implements FormulaItem {

	private static final String OPERATOR_SYMBOL = "-";
	private FormulaItem formulaItem;

	public UnaryMinusFormula(FormulaItem formulaItem) {
		this.formulaItem = formulaItem;
	}

	@Override
	public String getJSFunctionElement() {
		return PARENTHESIS_LEFT + OPERATOR_SYMBOL
				+ formulaItem.getJSFunctionElement() + PARENTHESIS_RIGHT;
	}

}
